<table>
    <tbody>
        <tr>
            <td>发货单号</td>
            <td>{{ $delivery->delivery_no }}</td>
        </tr>
        <tr>
            <td>批次号</td>
            <td>{{ $delivery->batch_no }}</td>
        </tr>
        <tr>
            <td>发货仓库</td>
            <td>{{ $delivery->warehouse->w_code ?? '' }}</td>
        </tr>
        <tr>
            <td>入库代码</td>
            <td>{{ $delivery->warehouse->in_code ?? '' }}</td>
        </tr>
    </tbody>
</table>
<table>
    <thead>
    <tr>
        <th>箱号</th>
        <th>箱数</th>
        <th>FnSKU</th>
        <th>SKU</th>
        <th>单箱数量</th>
        <th>长(CM)</th>
        <th>宽(CM)</th>
        <th>高(CM)</th>
        <th>重(KG)</th>
    </tr>
    </thead>
    <tbody>
    @foreach($delivery->box as $item)
        <tr>
            <td>{{ $item->box_no }}</td>
            <td>{{ $item->total }}</td>
            <td>{{ $item->fnsku }}</td>
            <td>{{ $item->sku->psku_code ?? '' }}</td>
            <td>{{ $item->num_per_box }}</td>
            <td>{{ $item->long }}</td>
            <td>{{ $item->wide }}</td>
            <td>{{ $item->high }}</td>
            <td>{{ $item->weight }}</td>
        </tr>
    @endforeach
    </tbody>
</table>
